/*
 * Amkai Enterprise Solution (AES.) 
 * Copyright 2004 by Amkai(TM), Inc.
 * www.amkai.com
 * 
 * Project: webservice
 * Package: com.amkai.aes.webservice.binary.objecthandler.inventory
 * File: BooleanHQLGenerator.java
 * Created: 2007.11.16. 12:41:07
 * Author: azalan 
 * 
 */
package com.amkai.aes.webservice.binary.objecthandler.inventory;

public class BooleanHQLGenerator extends BaseHQLGenerator {

	public BooleanHQLGenerator(String instanceName, String propertyName,
			ResolverServiceManager resolverMgr) {
		super(instanceName, propertyName, resolverMgr);
	}

	@Override
	public Object getValueFromText(String searchText) {
		if (searchText == null) return false;
		return Boolean.parseBoolean(searchText);
	}

}
